Skip to content

[action] [PR:4172] [RouteOrch] fix performance regression in ResponsePublisher#4313

Merged
mssonicbld merged 1 commit intosonic-net:202511from
mssonicbld:cherry/202511/4172
Mar 9, 2026
Merged

[action] [PR:4172] [RouteOrch] fix performance regression in ResponsePublisher#4313
mssonicbld merged 1 commit intosonic-net:202511from
mssonicbld:cherry/202511/4172

Conversation

@mssonicbld
Copy link
Collaborator

What I did

Fix performance regression caused by #3066 : setBuffered wasn't using Redis pipeline correctly.
Add a flag to directly write attributes passed by the caller of publish API avoiding Redis HGET which breaks Redis pipeline.

Why I did it

Fix performance degradation observed in BGP suppress test.

How I verified it

  • t1-lag BGP route test. Starting BGP sessions config bgp startup all and profile.
  • BGP suppress FIB sonic-mgmt test
image

Signed-off-by: Sonic Build Admin [email protected]

<!--
Please make sure you have read and understood the contribution guildlines:
https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

1. Make sure your commit includes a signature generted with `git commit -s`
2. Make sure your commit title follows the correct format: [component]: description
3. Make sure your commit message contains enough details about the change and related tests
4. Make sure your pull request adds related reviewers, asignees, labels

Please also provide the following information in this pull request:
-->

**What I did**

Fix performance regression caused by sonic-net#3066 : setBuffered wasn't using Redis pipeline correctly.
Add a flag to directly write attributes passed by the caller of publish API avoiding Redis HGET which breaks Redis pipeline.

**Why I did it**

Fix performance degradation observed in BGP suppress test.

**How I verified it**

- t1-lag BGP route test. Starting BGP sessions config bgp startup all and profile.
- BGP suppress FIB sonic-mgmt test

<img width="2082" height="1444" alt="image" src="https://github.com/user-attachments/assets/752c1ae0-a44e-4aaa-baba-17ce584d05c9" />

Signed-off-by: Sonic Build Admin <[email protected]>
@mssonicbld
Copy link
Collaborator Author

Original PR: #4172

@mssonicbld
Copy link
Collaborator Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit 512aa6e into sonic-net:202511 Mar 9, 2026
16 checks passed
andrewsapronov pushed a commit to netbergtw/sonic-swss that referenced this pull request Mar 12, 2026
…t#4313)

<!--
Please make sure you have read and understood the contribution guildlines:
https://github.com/Azure/SONiC/blob/gh-pages/CONTRIBUTING.md

1. Make sure your commit includes a signature generted with `git commit -s`
2. Make sure your commit title follows the correct format: [component]: description
3. Make sure your commit message contains enough details about the change and related tests
4. Make sure your pull request adds related reviewers, asignees, labels

Please also provide the following information in this pull request:
-->

**What I did**

Fix performance regression caused by sonic-net#3066 : setBuffered wasn't using Redis pipeline correctly.
Add a flag to directly write attributes passed by the caller of publish API avoiding Redis HGET which breaks Redis pipeline.

**Why I did it**

Fix performance degradation observed in BGP suppress test.

**How I verified it**

- t1-lag BGP route test. Starting BGP sessions config bgp startup all and profile.
- BGP suppress FIB sonic-mgmt test

<img width="2082" height="1444" alt="image" src="https://github.com/user-attachments/assets/752c1ae0-a44e-4aaa-baba-17ce584d05c9" />

Signed-off-by: Sonic Build Admin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant